package com.cjm.one.webmanager.service.customer;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.model.custom.dto.UserChartItem;
import com.cjm.one.model.custom.entity.CustomerInfo;

import java.util.List;
import java.util.Map;

public interface CustomerInfoService {
    Page<CustomerInfo> getList(Integer current, Integer size, String name, String phone, Long userId, String level,String email);

    CustomerInfo getById(Long id);

    Boolean removeById(Long id);

    Boolean updateById(CustomerInfo customerInfo);

    Boolean addInfo(CustomerInfo customerInfo);

    Map<String, Object> getUserSummary(String timeRange);

    List<UserChartItem> getUserChart(String timeRange);

    Boolean refund(String orderNo);
}
